package com.yuyou.fn.analyze.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.analyze.entity.ProductTarget;
import com.yuyou.fn.analyze.vo.ProductTargetResultVo;
import com.yuyou.fn.analyze.vo.ProductTargetVo;
import com.yuyou.fn.educational.vo.ProductQueryVo;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.List;

/**
 *
 * ProductTarget 表数据服务层接口
 *
 */
public interface IProductTargetService extends ISuperService<ProductTarget,Long> {

    public void insertByList(Long productId,String year,Integer targetType,List<ProductTargetVo> productTargetVoList);

    public void deleteByProductId(Long productId,String year,Integer targetType);

    public Page<ProductTargetResultVo> findPages(ProductQueryVo productQueryVo, DataPermission dataPermission, int pageNo, int pageSize, String year, Integer targetType);

    public List<ProductTarget> findListByProductIdsAndPeriodIds(List<Long> productIdList,List<Long> periodIds,String year, Integer targetType);
}